package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "sm_courseware")
public class SmCourseware {

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/** 课件名称 */
	@TableField(value = "`name`")
	private String name;

	/** 类型： 1.曲目  2.视频 3.图片 */
	@TableField(value = "`type`")
	private String type;

	/** 类型为曲目所关联的曲目id */
	@TableField(value = "music_id")
	private Integer musicId;

	/** 类型为图片所存储的地址 */
	@TableField(value = "img_url")
	private String imgUrl;

	/** 类型为视频所存储的地址 */
	@TableField(value = "mp4_url")
	private String mp4Url;

	public static final String COL_ID = "id";

	public static final String COL_TYPE = "type";

	public static final String COL_NAME = "name";

	public static final String COL_MUSIC_ID = "music_id";

	public static final String COL_IMG_URL = "img_url";

	public static final String COL_MP4_URL = "mp4_url";
}